<%-- 
    Document   : AdminProduct
    Created on : Dec 21, 2013, 11:32:13 AM
    Author     : lyhoang
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page language="java"%>


<div class="sumup-col-main-left">
	<h1 class="page-title">Quan Ly Khuyen Mai</h1>
	<table class="fixed" id="rounded-corner"
		summary="2007 Major IT Companies' Profit">
		<thead>
			<tr>
				<th scope="col" class="rounded-company"><input type="checkbox"
					name="" /></th>
				<th scope="col" class="rounded" width="30px">Id</th>
				<th scope="col" class="rounded" width="120px">Discount</th>
				<th scope="col" class="rounded" width="50px" >Edit</th>
				<th scope="col" class="rounded" width="80px">Delete</th>
			</tr>
		</thead>

		<tbody>
			<c:forEach var="p" items="${promotions}">
				<tr>
					<td><input type="checkbox" name="" /></td>
					<td>${p.idpromtion}</td>
					<td>${p.discount}%</td>		
					<td><a href="admineditproduct.do?id=${p.idpromtion}"><img
							src="<c:url value="/resources/images/user_edit.png" />" alt=""
							title="" border="0" /></a></td>
					<td><a
						href="admineditproduct.do?id=${p.idpromtion}&action=Delete"
						class="ask"><img
							src="<c:url value="/resources/images/trash.png" />" alt=""
							title="" border="0" /></a></td>
				</tr>
			</c:forEach>
			<!--     	<tr> -->
			<!--             <td><input type="checkbox" name="" /></td> -->
			<!--             <td>ID</td> -->
			<!--             <td>product Name</td> -->
			<!--             <td>Detail</td> -->
			<!--             <td>150$</td> -->
			<!--             <td>http://aaaaa</td> -->
			<!--             <td>10</td> -->
			<%--             <td><a href="#"><img src="<c:url value="/resources/images/user_edit.png" />" alt="" title="" border="0" /></a></td> --%>
			<%--             <td><a href="#" class="ask"><img src="<c:url value="/resources/images/trash.png" />" alt="" title="" border="0" /></a></td> --%>
			<!--         </tr> -->
		</tbody>
	</table>
	<a href="adminaddpromotion.do" class="bt_green"><span class="bt_green_lft"></span><strong>Add
			new item</strong><span class="bt_green_r"></span></a>
	<div class="col-main-left">
		<div class="pagination">
			<!--         <span class="disabled"><< prev</span> -->
			<ol class="wp-paginate">
				<li><span class="title">Pages:</span></li>
				<!-- 			<li><a class="prev" href="#">&laquo;</a></li> -->
				<c:forEach var="t" begin="1" end="${totalPage}">
					<c:if test="${pagecurrent == t}">

						<li><span class="page current">${t }</span></li>
					</c:if>
					<c:if test="${pagecurrent != t}">
						<li><a class="page" title="${t}"
							href="admincatalog.do?page=${t}">${t}</a></li>
					</c:if>
				</c:forEach>


				<!-- 			<li><a class="next" href="#">&raquo;</a></li> -->
			</ol>
		</div>
	</div>


</div>